/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

/**
 *
 * @author Garfield
 */
public abstract class DAOFactory {
    public static final int MYSQL = 1;
    public static final int ORACLE = 2;
    
    public static DAOFactory getInstance(int dataSource){
        switch (dataSource){
            case MYSQL: return new MySQLDAOFactory();
        }
        return null;
    }
    
    public abstract ProductDAO createProductDAO();
    public abstract UserDAO createUserDAO();
    public abstract ProductCatDAO createProdCatDAO();
    public abstract CategoriesDAO createCatDAO();
    public abstract TagsDAO createTagsDAO();
}
